--- socat-1.7.2.4.org/configure	2014-12-05 19:06:25.192312720 +0100
+++ socat-1.7.2.4/configure	2014-12-05 19:07:29.807309636 +0100
@@ -3348,7 +3348,7 @@
 
 
 
-if test "$CC" = "gcc"; then
+if test "$GCC" = "yes"; then
    CFLAGS="$CFLAGS -D_GNU_SOURCE -Wall -Wno-parentheses"
    ERRONWARN="-Werror -O0"
 elif test "$CC" = "clang"; then
